﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using CrateMayhem.Common.Controls;
using CrateMayhem.Desktop.Common;

namespace CrateMayhem.Desktop.Controls
{
    public class CrateTarget : Border, ICrateTarget
    {
        private static readonly Brush brush;

        public CrateTarget()
        {
            DefaultStyleKey = typeof (CrateTarget);
            CornerRadius = new CornerRadius(10);
            BorderThickness = new Thickness(1);
            Width = 10;
            Height = 10;
            Background = brush;
            BorderBrush = brush;
        }

        static CrateTarget()
        {
            brush = Common.Resources.GameStyles.Get<Brush>("CrateLocationBrush");
        }
    }
}